﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LanDBom.Models.Contracts
{
    public class AddContracts
    {
        LDbaseEntities LD = new LDbaseEntities();
        public int Adddes(Designdraw des)
        {
            LD.Designdraw.Add(des);

            return LD.SaveChanges();
        }

        public int Addlogs(BeiZhu bz)
        {
            LD.BeiZhu.Add(bz);

            return LD.SaveChanges();
        }
        public int Updates(Designdraw des)
        {
            LD.Entry(des).State=System.Data.Entity.EntityState.Modified;

            return LD.SaveChanges();
        }
    }
}